package com.zy.component;

import com.zy.bean.TAdmin;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;
import java.util.Set;

/**
 * @Author: zy 690748807@qq.com
 * @Description: TODO 安全框架验证登陆页面
 * @Date: 2024/3/3 15:04
 * @Version: 1.0
 * @name 方法名字：
 */

public class TSecurityAdmin extends User {
    TAdmin admin;

    public TSecurityAdmin(TAdmin admin, Set<GrantedAuthority> authorities) {
        // super(admin.getLoginacct(),admin.getUserpswd(),authorities);
        super(admin.getLoginacct(), admin.getUserpswd(), true, true, true, true, authorities);
        this.admin = admin;
    }
}
